package org.wkg.lesson01;

public class Demo03 {
    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        thread.start();

        // 主线程中的任务
        while (true) {
            try {
                // 让线程休眠一会
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("hello main thread...");
        }
    }
}

